package net.database.model.domain

class Item {

    static constraints = {
		name				blank: false, maxSize:255
		damage				nullable: true
		shield				nullable: true
    }
	
	static belongsTo = ItemType
	
	static hasMany = [magicProperties: MagicProperty]
	
	String name
	Double damage
	Integer shield
	ItemType itemType
	Hero hero
	Rarity rarity
}
